import request from '@/utils/request'

// 查询系统字典列表
export function listLanguage(query) {
    return request({
        url: '/cms/manager/language/list',
        method: 'get',
        params: query
    })
}

// 查询系统字典详细
export function getLanguage(id) {
    return request({
        url: '/cms/manager/language/' + id,
        method: 'get'
    })
}

// 新增系统字典
export function addLanguage(data) {
    return request({
        url: '/cms/manager/language',
        method: 'post',
        data: data
    })
}

// 修改系统字典
export function updateLanguage(data) {
    return request({
        url: '/cms/manager/language',
        method: 'put',
        data: data
    })
}

// 删除
export function delLanguage(id) {
    return request({
        url: '/cms/manager/language/' + id,
        method: 'delete'
    })
}
